var E0001= "{0}不能为空!";
var E0002= "{0}输入信息过长!";
var E0003= "{0}不符合格式要求格式!";

//手机号校验
function checkPhoneNum(number) {
    var reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
    return reg.test(number);
}

//长度校验
function checkLength(code, length) {
    return code.length <= length;
}